#include"Processbar.h"
#include <unistd.h>
void download()
{
  double filesize = 100*1024*1024*1.0;
  double current = 0.0;
  double bandwidth = 1024*1024*1.0;


    printf("download dnoe,filesize : %lf\n",filesize);
    while(current <= filesize)
    {
        ProcBar(filesize,current);
        current += bandwidth;
        usleep(10000);
    } 

    printf("download dnoe,filesize : %lf\n",filesize);
}
int main()
{
 //.autorelabel ForTest();
  // ProcBar(100.0,56.9);
  download();
  return 0;
}
